package com.xnyzc.lhy.common.penum;


import com.xnyzc.lhy.common.entity.PEnum;

/**
 * 订单操作类型
 *
 * @Author: Long
 * @Date: 2019/1/4 11:34
 */
public enum EDOrderHandlerType implements PEnum<String> {
    //    add("新增订单"), modify("修改订单"), getOrder("接受订单"), transfer("订单转移"), setAppraiseTime("设置评估时间"), appraised("完成评估"), skipAppraise("跳过评估"),
//    startService("开始服务"), finishService("结束服务"), getEarnestAmount("收取定金"), getAmount("线上收款"), judge("评价订单"), cancel("订单取消");
    add("新增订单"), modify("修改订单"), submitOrder("管家提交订单至服务商"),
    acceptOrder("服务商接受订单"), refuseOrder("服务商拒绝订单"), transfer("订单转移"),
    startService("开始服务"), completeService("完成服务"), finish("完成订单"),
    getAmount("线上收款"),
    judge("评价订单"), cancel("订单取消");

    private String desc;

    EDOrderHandlerType(String desc) {
        this.desc = desc;
    }

    @Override
    public String getValue() {
        return name();
    }

    @Override
    public String toString() {
        return name();
    }

    @Override
    public String toChString() {
        return desc;
    }
}
